package com.chen.service.serviceimpl;

import com.chen.dao.TeacherDao;
import com.chen.pojo.Teacher;
import com.chen.pojo.User;
import com.chen.service.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TeacherServiceImpl implements TeacherService {
    @Autowired
    TeacherDao teacherDao;

    @Override
    public List<Teacher> getTeacherList(Teacher teacher) {
        return teacherDao.getTeacherList(teacher);
    }

    @Override
    public void deleteById(int id) {
        teacherDao.deleteById(id);
    }

    @Override
    public void updateById(Teacher teacher) {
        teacherDao.updateById(teacher);
    }

    @Override
    public Teacher getTeacherById(int id) {
        return teacherDao.getTeacherById(id);
    }

    @Override
    public void addTeacher(Teacher teacher) {
        teacherDao.addTeacher(teacher);
    }

    @Override
    public void updatePassword(User user) {

    }
}
